* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.container {
    width: 100%;
    height: 95%;
    background: #fff;
}

.header {
    position: relative;
    width: 100%;
    height: 10%;
    background: #ededed;
    padding: 0 15px;
}

.header p {
    height: 100%;
    text-align: center;
    padding-top: 1%;
    font-size: 26px;
    letter-spacing: 5px;
}


.chatBox {
    position: relative;
    width: 100%;
    height: 72%;
    padding: 50px;
    overflow-y: auto;
    background-color: rgba(255, 192, 203, .3)
}

.message {
    position: relative;
    display: flex;
    width: 100%;
    margin: 5px 0;
}

.message p {
    position: relative;
    right: 0;
    text-align: right;
    max-width: 65%;
    padding: 12px;
    background: #dcf8c6;
    border-radius: 10px;
    font-size: 0.9em;
}

.message p::before {
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
}

.message p span {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.5;
}

.my_message {
    justify-content: flex-end;
}

.my_message p {
    font-size: 18px;
}

.frnd_message {
    justify-content: flex-start;
}

.frnd_message p {
    background: #fff;
    text-align: left;
    font-size: 18px;
}

.message.frnd_message p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(225deg, #fff 0%, #fff 50%, transparent 50%, transparent);
}

.chatbox_input {
    position: relative;
    width: 100%;
    height: 18%;
    background: #f0f0f0;
    padding: 15px;
    justify-content: space-between;
    align-items: center;
}

.chatbox_input input {
    position: relative;
    width: 90%;
    height: 50%;
    margin: 0 20px;
    padding: 10px 20px;
    border: none;
    outline: none;
    border-radius: 30px;
    font-size: 1em;
}

.chatbox_input img {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 10px;
    right: 20px;
}

#but {
    width: 90%;
    height: 30%;
    margin-top: 20px;
    margin-left: 20px;
    display: inline-block;
    background-color: #8bcfab;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 15px;
    letter-spacing: 10px;
}

#but:hover {
    background-color: #009960;
}



/* 新增样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    text-align: center;
    z-index: 1;
}


.navbar_div {
    width: 70%;
    margin: 0 auto;
}

.navbar_left {
    float: left;
}

.navbar_left li {
    display: inline-block;
    font-size: 0;
    width: 70px;
}

.navbar_left li a {
    font-size: 18px;
    text-decoration: none;
    color: black;
}

.navbar_right {
    float: right;
}

.navbar_right li {
    display: inline-block;
    font-size: 0;
    width: 70px;
    text-align: right;
}

.navbar_right li a {
    font-size: 18px;
    text-decoration: none;
    color: black;
}


.navbar a:hover {
    color: #fc4909;
}